CC = gcc
CFLAG = -g -Wall -O3 
CINCLUDE = -I./ 
CLIB = -ludev
CFLAGS = $(CFLAG) $(CINCLUDE) $(CLIB)
SRC = $(wildcard *.c)
TAGS = usb_monitor

.PHONY:all
all:$(TAGS)

$(TAGS): $(SRC) $(HEAD) Makefile
	$(CC) $(SRC) -o $(TAGS) $(CFLAGS)

clean:
	rm -f *.o $(TAGS)

install:
	cp -rf $(TAGS) /usr/local/bin/

